package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the per_audit database table.
 * 
 */
@Entity
@Table(name="per_audit")
@NamedQuery(name="PerAudit.findAll", query="SELECT p FROM PerAudit p")
public class PerAudit implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int auditid;

	private String auditjg;

	private String auditrem;

	private String auditrsn;

	private String auditsj;

	private Timestamp audittime;

	//bi-directional many-to-one association to PerAuditShlx
	@ManyToOne
	@JoinColumn(name="PER_SHLXID")
	private PerAuditShlx perAuditShlx1;

	//bi-directional many-to-one association to PerAuditShlx
	@ManyToOne
	@JoinColumn(name="SHLXID")
	private PerAuditShlx perAuditShlx2;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp1;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="PER_EMPID")
	private PerPmsEmp perPmsEmp2;

	//bi-directional many-to-one association to PerAuditMdy
	@OneToMany(mappedBy="perAudit")
	private List<PerAuditMdy> perAuditMdies;

	public PerAudit() {
	}

	public int getAuditid() {
		return this.auditid;
	}

	public void setAuditid(int auditid) {
		this.auditid = auditid;
	}

	public String getAuditjg() {
		return this.auditjg;
	}

	public void setAuditjg(String auditjg) {
		this.auditjg = auditjg;
	}

	public String getAuditrem() {
		return this.auditrem;
	}

	public void setAuditrem(String auditrem) {
		this.auditrem = auditrem;
	}

	public String getAuditrsn() {
		return this.auditrsn;
	}

	public void setAuditrsn(String auditrsn) {
		this.auditrsn = auditrsn;
	}

	public String getAuditsj() {
		return this.auditsj;
	}

	public void setAuditsj(String auditsj) {
		this.auditsj = auditsj;
	}

	public Timestamp getAudittime() {
		return this.audittime;
	}

	public void setAudittime(Timestamp audittime) {
		this.audittime = audittime;
	}

	public PerAuditShlx getPerAuditShlx1() {
		return this.perAuditShlx1;
	}

	public void setPerAuditShlx1(PerAuditShlx perAuditShlx1) {
		this.perAuditShlx1 = perAuditShlx1;
	}

	public PerAuditShlx getPerAuditShlx2() {
		return this.perAuditShlx2;
	}

	public void setPerAuditShlx2(PerAuditShlx perAuditShlx2) {
		this.perAuditShlx2 = perAuditShlx2;
	}

	public PerPmsEmp getPerPmsEmp1() {
		return this.perPmsEmp1;
	}

	public void setPerPmsEmp1(PerPmsEmp perPmsEmp1) {
		this.perPmsEmp1 = perPmsEmp1;
	}

	public PerPmsEmp getPerPmsEmp2() {
		return this.perPmsEmp2;
	}

	public void setPerPmsEmp2(PerPmsEmp perPmsEmp2) {
		this.perPmsEmp2 = perPmsEmp2;
	}

	public List<PerAuditMdy> getPerAuditMdies() {
		return this.perAuditMdies;
	}

	public void setPerAuditMdies(List<PerAuditMdy> perAuditMdies) {
		this.perAuditMdies = perAuditMdies;
	}

	public PerAuditMdy addPerAuditMdy(PerAuditMdy perAuditMdy) {
		getPerAuditMdies().add(perAuditMdy);
		perAuditMdy.setPerAudit(this);

		return perAuditMdy;
	}

	public PerAuditMdy removePerAuditMdy(PerAuditMdy perAuditMdy) {
		getPerAuditMdies().remove(perAuditMdy);
		perAuditMdy.setPerAudit(null);

		return perAuditMdy;
	}

}